/**
 * @file bs_type.h
 * @author bushaofeng(com@baidu.com)
 * @date 2011/11/21 16:31:25
 * @brief 
 *  
 **/




#ifndef  __BS_TYPE_H_
#define  __BS_TYPE_H_

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#include <stdint.h>


#ifdef __cplusplus
extern "C"{
#endif

typedef short           state_t;
typedef char            int_8;
typedef unsigned char   uint_8;
typedef short           int_16;
typedef unsigned short  uint_16;
typedef int             int_64;
typedef unsigned int    uint_64;
typedef long long       int64;
typedef unsigned long long u_int64;

enum{
    BS_CONT_ORIGINAL,
    BS_CONT_NOTORIG,
    BS_CONT_NUM
};

enum{
    BS_DOC_MASTER,
    BS_DOC_REPLY,
    BS_DOC_DOCNUM
};

enum{
    BS_CODE_GB2312,
    BS_CODE_GB18030,
    BS_CODE_UTF8,
    BS_CODE_ANSI,
    BS_CODE_UNICODE,
    BS_CODE_NUM
};

enum{
    BS_CHINESE,
    BS_LANGNUM
};

enum{
    BS_POS_POSTTEXT,
    BS_POS_POSTSUBJECT,
    BS_POS_SUBJECT,

    BS_POS_CONT,
    BS_POS_LINK,
    BS_POS_META,
    BS_POS_MYPOS,
    BS_POS_ANCHOR,
    BS_POS_PREANCHOR,
    BS_POS_RETITLE,
    BS_POS_TITLE,

    BS_POS_POSNUM
};

#ifdef __cplusplus
}
#endif
#endif  //__BS_TYPE_H_

/* vim: set expandtab ts=4 sw=4 sts=4 tw=100: */
